package day8homework;

public class Student extends Person{
	private String school;
	private int studentId;
	
	public Student() {
	}
	
	public Student(String name,String sex,int age,String nationality,String school, int studentId) {
		super(name, sex, age, nationality);
		this.school = school;
		this.studentId = studentId;
	}
	

	@Override
	public String toString() {
		return "Student [school=" + school + ", studentId=" + studentId + ", getSchool()=" + getSchool()
				+ ", getStudentId()=" + getStudentId() + ", toString()=" + super.toString() + ", getName()=" + getName()
				+ ", getSex()=" + getSex() + ", getAge()=" + getAge() + ", getNationality()=" + getNationality()
				+ ", getClass()=" + getClass() + ", hashCode()=" + hashCode() + "]";
	}

	@Override
	public void work() {
		System.out.println("学生的工作是学习");
	}

	public String getSchool() {
		return school;
	}

	public void setSchool(String school) {
		this.school = school;
	}

	public int getStudentId() {
		return studentId;
	}

	public void setStudentId(int studentId) {
		this.studentId = studentId;
	}
}
